# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-disk-utility
pkgver=3.36.3
pkgrel=0
pkgdesc="GNOME libraries and applications for dealing with storage devices"
url="https://wiki.gnome.org/Apps/Disks"
arch="all !s390x !mips !mips64"
license="GPL-2.0-or-later"
depends="gptfdisk parted"
makedepends="gnome-settings-daemon-dev glib-dev libxslt-dev intltool libcanberra-dev
	libnotify-dev libdvdread-dev libpwquality-dev libsecret-dev udisks2-dev
	meson xz-dev elogind-dev"
options="!check" # no tests
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnome-disk-utility/${pkgver%.*}/gnome-disk-utility-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="160283e1b0864e08ba6feb9368791e4cd3b287dc628553a69a1c276fa66252b37b1d906451b4342d953504a4669056aed0ebb3233ff61cbb761e612258ca078f  gnome-disk-utility-3.36.3.tar.xz"
